package stack_queue

func NewMyQueue1() *MyQueue1 {
	return &MyQueue1{doubleLinkList: &DoubleLinkList{}}
}

type MyQueue1 struct {
	doubleLinkList *DoubleLinkList
}

func (s *MyQueue1) Push(val int) {
	s.doubleLinkList.AddFromHead(val)
}

func (s *MyQueue1) Pop() int {
	return s.doubleLinkList.PullFromTail().(int)
}

func (s *MyQueue1) IsEmpty() bool {
	return s.doubleLinkList.IsEmpty()
}



